package ui;
import java.awt.event.*;

import javax.swing.JFrame;
import javax.swing.JOptionPane;

import core.Core;

public class BtnCloseDownloads implements ActionListener  {

	private JFrame window;
	
	public BtnCloseDownloads(JFrame window) {
		
		this.window=window;
		
	}

	public void actionPerformed(ActionEvent contexte) {
		
		Core core=Core.getInstance();
		core.closeDownloaders();
		
		JOptionPane.showMessageDialog(window, "Torrents have been closed.");

		
	}

}
